package edu.hunau.cxb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author hb
 * @create 2020-04-08 11:45
 */
@Controller
public class ExTestController {
    @PostMapping("/ex")
    public String testDefaultHanlderExceptionResolver() {
        return "index";
    }

    @GetMapping("/simple")
    public String textSimpleExcepiton(){
        String [] arr=new String[10];
        System.out.println(arr[11]);
        return "index";
    }
}
